<?php
/**
 * @file $HeadURL: sns_myprofile.php $
 * @author $Author: LiangJian (liangjian@haibao.com) $
 * @date $Date: 2015-4-1 下午3:14:03 $
 * @brief 
 */
namespace haibao\user\model\data;

/**
 * 用户详细信息
 */
class SnsMyProfile extends Base{
	
	const MOBILE_VERIFIED_YES = 1;
	
	const MOBILE_VERIFIED_NO = 0;
	
	const EMAIL_VERIFIED_YES = 1;
	
	const EMAIL_VERIFIED_NO = 0;
	
	const EMAIL_RECV_YES = 1;
	
	const EMAIL_RECV_NO = 0;
	
	const BUDDY_NEED_VALIDATE_YES = 1;
	
	const BUDDY_NEED_VALIDATE_NO = 0;
	
	const HOBBY_SELECTED_YES = 1;
	
	const HOBBY_SELECTED_NO = 0;

	public $user_id;

	public $avatar = '';

	public $tb_avatar_small;

	public $tb_avatar_middle;

	public $tb_avatar_large;

	public $gender = 0;

	public $username = '';

	public $is_staff = 0;

	public $last_online;

	public $last_ip;

	public $is_email_verified;
	
	public $is_mobile_verified;

	public $is_recv_email;

	public $is_buddy_need_validate;

	public $is_hobby_selected;

	public $home_privacy;

	public $recommend_value;

	public $recommend_meno;

	public $score;

	public $money;

	public $score_1;

	public $score_2;

	public $threads;

	public function __construct(){
		parent::__construct();
		$this->intField('user_id', 'user_id', true);
		$this->stringField('avatar', 'avatar', true);
		$this->stringField('tb_avatar_small', 'tb_avatar_small');
		$this->stringField('tb_avatar_middle', 'tb_avatar_middle');
		$this->stringField('tb_avatar_large', 'tb_avatar_large');
		$this->intField('gender', 'gender', true);
		$this->stringField('username', 'username', true);
		$this->intField('is_staff', 'is_staff', true);
		$this->dateField('last_online', 'last_online', true);
		$this->intField('last_ip', 'last_ip');
		$this->intField('is_email_verified', 'is_email_verified');
		$this->intField('is_mobile_verified', 'is_mobile_verified');
		$this->intField('is_recv_email', 'is_recv_email');
		$this->intField('is_buddy_need_validate', 'is_buddy_need_validate');
		$this->intField('is_hobby_selected', 'is_hobby_selected');
		$this->intField('home_privacy', 'home_privacy');
		$this->intField('recommend_value', 'recommend_value');
		$this->stringField('recommend_meno', 'recommend_meno');
		$this->intField('score', 'score');
		$this->intField('score_1', 'score_1');
		$this->intField('score_2', 'score_2');
		$this->intField('threads', 'threads');

		$this->setTableName('sns_myprofile');
	}
}